﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InfoPick.Lib.Entity
{
    public class AIETG
    {
        /// <summary>
        /// 中继群名称
        /// </summary>
        public string GroupName{ get; set; }

        /// <summary>
        /// 中继群号
        /// </summary>
        public int GroupNum { get; set; }

        /// <summary>
        /// 目的信令点编码
        /// </summary>
        public string DPC { get; set; }


        /// <summary>
        /// 网络指示
        /// </summary>
        public string NetworkIdentity { get; set; }

        /// <summary>
        /// 索引
        /// </summary>
        public int? Idx { get; set; }

        /// <summary>
        /// 链路集索引(from N7RT)
        /// </summary>
        public int? LinkSetIdx { get; set; }

        public static AIETG Create(string[] row)
        {
            try
            {
                AIETG obj = new AIETG();
                obj.GroupNum = int.Parse(row[0]);
                obj.GroupName = row[1];
                obj.DPC = row[2];
                obj.NetworkIdentity = row[3];
                return obj;
            }
            catch (Exception e)
            {
                return null;
            }
        }
    }
}
